﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SistemaInventarioMVC.Models.Entidades
{
    [Table("Inventario")]
    public class Inventario
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 InventarioID { get; set; }

        [Column]
        [Required(ErrorMessage="Este campo es requerido")]
        [StringLength(50)]
        [Display(Name="Nombre del inventario")]
        public String Nombre { get; set; }

        //Propiedades de navegacion
        public virtual ICollection<Articulo> Articulos { get; set; }
    }
}